<%@page import="com.yymmarket.forum.admin.AdminAction,java.util.Date,com.yymmarket.forum.util.DateUtil,com.yymmarket.forum.admin.AdminService,com.yymmarket.forum.util.LevelUtil,com.yymmarket.forum.cache.ForumCache,com.yymmarket.forum.admin.AdminBean,com.yymmarket.forum.util.SessionUtil,com.yymmarket.framework.PagingBean,com.yymmarket.forum.util.BaseUtil,com.yymmarket.util.StringUtil,com.yymmarket.forum.bbs.ContentBean,java.util.List,com.yymmarket.forum.bbs.ContentService,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="text/vnd.wap.wml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
AdminAction webAction = new AdminAction(request,response);
int id = webAction.getParameterInt("id");
BBSService bbs = BBSService.getInstance();

boolean flag = webAction.forbidUser();

%><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="<%=ForumCache.getBBSBean(id).getTitle()+"禁封用户" %>">
<p><% if(flag) {
%>禁封成功<br/>
<a href="forbid.jsp?id=<%=id %>">返回禁封列表</a><br/><%
} else {
Integer uid = SessionUtil.getSessionUserId(request);
AdminBean adminBean = ForumCache.getAdminBean(LevelUtil.TYPE_BBS,id,uid);
if(adminBean.getAdminLevel()>=LevelUtil.BBS_LEVEL_FUBANZHU){
%><%=webAction.getAttributeEnter("msg") %>添加禁封用户<br/>
用户ID:<br/>
<input name="userId" value=""/><br/>
类型:<br/>
<select name="type">
<option value="80">禁回帖</option>
<option value="70">禁发帖和回帖</option>
<%if(adminBean.getAdminLevel()>=LevelUtil.BBS_LEVEL_BANZHU) {%>
<option value="60">加入黑名单</option><%} %>
</select><br/>
期限:<br/>
<select name="endTime">
<option value="1">1小时</option>
<option value="3">3小时</option>
<option value="12">12小时</option>
<option value="24">1天</option><%if(adminBean.getAdminLevel()>=LevelUtil.BBS_LEVEL_BANZHU) {%>
<option value="168">1周</option>
<option value="720">1月</option><%} %>
</select><br/>
理由:<br/><input name="description" value=""/><br/>
<anchor>禁封该ID
<go href="forbidUser.jsp?id=<%=id %>" method="post">
<postfield name="userId" value="$userId" />
<postfield name="type" value="$type" />
<postfield name="endTime" value="$endTime" />
<postfield name="description" value="$description" />
</go></anchor><br/><%
} }
%><a href="forbid.jsp?id=<%=id %>">返回禁封列表</a><br/>
<a href="forum.jsp?id=<%=id %>">&lt;返回<%=bbs.getBBSBeanById(id).getTitle() %></a><br/>
<a href="index.jsp">&lt;&lt;返回论坛</a><br/>
<%= BaseUtil.bottom(request,response) %></p>
</card>
</wml>